package com.archgeek.rpc.hadoop;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.ipc.RPC;

import java.io.IOException;
import java.net.InetSocketAddress;

/**
 * 客户端
 *
 * @author pizhihui
 * @date 2020-05-15
 */
public class DFSClient {


    public static void main(String[] args) throws IOException {

        ClientProtocol namenode = RPC.getProxy(ClientProtocol.class,
                1234L,
                new InetSocketAddress("localhost", 9999),
                new Configuration());

        namenode.makeDir("/user/opt/soft");
    }

}
